package com.qfedu;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qfedu.VueApplication;
import com.qfedu.entity.User;
import com.qfedu.mapper.UserMapper;
import com.qfedu.service.IUserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

/**
 * @author LiJH
 * @date 2023-02-07
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class Demo {
    @Autowired
    private IUserService iUserService;
    @Autowired
    private UserMapper userMapper;
    @Test
    public void test1(){
        List<User> list = iUserService.list();
        System.out.println(list);
//        QueryWrapper<User> queryWrapper = new QueryWrapper<>();
//        QueryWrapper<User> id = queryWrapper.eq("id", null);
//        List<User> users = userMapper.selectList(id);
//        System.out.println(users);
    }
}